import Vue from 'vue'
import VueRouter from 'vue-router'
import LoginView from '../views/LoginView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: LoginView
  },
  { 
    path: '/home',
    component: ()=>import('../views/HomeView.vue'),
    children:[
      {
        path:'movie',
        component:()=>import('../views/MovieView.vue')
      },{
        path:'dongman',
        component:()=>import('../views/DongmanView.vue')
      },
      {
        path:'arm',
        component:()=>import('../views/ArmView.vue')
      },
      {
        path:'zongyi',
        component:()=>import('../views/ZongyiView.vue')
      },
      {
        path:'com',
        component:()=>import('../views/MyCom.vue')
      },
      {
        path:'mypage',
        component:()=>import('../views/MyPage.vue')
      },
      {
        path:'slot',
        component:()=>import('../views/SlotView.vue')
      },
      {
        path:'life',
        component:()=>import('../views/LifeView.vue')
      },
      {
        path:'ref',
        component:()=>import('../views/RefView.vue')
      },
      {
        path:'bro',
        component:()=>import('../views/BroView.vue')
      },
      {
        path:'ancestry',
        component:()=>import('../views/AncestryView.vue')
      },
      {
        path:'elementone',
        component:()=>import('../views/ElementOne.vue')
      },
      {
        path:'elementtwo',
        component:()=>import('../views/ElementTwo.vue')
      },
      {
        path:'elementthree',
        component:()=>import('../views/ElementThree.vue')
      },
      {
        path:'object',
        component:()=>import('../views/ObjectView.vue')
      },
      {
        path:'dynamic',
        component:()=>import('../views/DynamicView.vue')
      },
      {
        path:'sass',
        component:()=>import("../views/SassView.vue")
      },
      {
        path:'axios',
        component:()=>import("../views/AxiosView.vue")
      },
      {
        path:"madaha",
        component:()=>import("../views/MadahaView.vue")
      }
    ]
  }
 
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})


export default router
